package com.asset.dispoal.business.casedispose.service.command;

import com.asset.dispoal.business.casedispose.domain.db.mapper.CasedisposeMapper;
import com.asset.dispoal.business.casedispose.dto.AppointAssetBatchResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import tech.mhuang.pacebox.core.ddd.BaseCommandNoParam;
import tech.mhuang.pacebox.springboot.protocol.Result;

import java.util.List;

@Component
public class CaseDisposeQueryAppointCommand implements BaseCommandNoParam<Result<List<AppointAssetBatchResponse>>> {
    @Autowired
    CasedisposeMapper casedisposeMapper;

    @Override
    public Result<List<AppointAssetBatchResponse>> execute() {
        return Result.ok(casedisposeMapper.queryAppoint());
    }
}
